package yrjdezu.abab.engineerpractice2.domain.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 文件分享表
 * </p>
 *
 * @author lzh
 * @since 2025-05-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("file_shares")
@ApiModel(value="FileShares对象", description="文件分享表")
public class FileShares implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "分享记录ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "文件ID")
    private Integer fileId;

    @ApiModelProperty(value = "分享用户ID")
    private Integer shareUserId;

    @ApiModelProperty(value = "接收用户ID（NULL表示匿名分享）")
    private Integer receiveUserId;

    @ApiModelProperty(value = "分享时间")
    private LocalDateTime shareTime;

    @ApiModelProperty(value = "分享链接")
    private String shareLink;


}
